package main

import (
	"fmt"
	"godst/containers"
)

func main() {
	aLen := 1000
	a := containers.CreateRandomIntArr(aLen, 100000)
	b := make([]int, aLen)
	copy(b, *a)
	//containers.TraverseArr(a)
	containers.TimeSort("MergeSort2", a)
	containers.TimeSort("MergeSort4", &b)
	fmt.Println("--after sort--")
	containers.TimeSort("MergeSort2", a)
	containers.TimeSort("MergeSort4", &b)
	//containers.TraverseArr(a)
	fmt.Println("sort is ", containers.VerifyArrIsSorted(a))
	fmt.Println("sort is ", containers.VerifyArrIsSorted(&b))
}
